

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class RmiServiceImpl extends UnicastRemoteObject implements IRmiService {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String name;

	public RmiServiceImpl(String name) throws RemoteException {
		this.name = name;
	}

	@Override
	public String service(String content) {
		System.out.println("Remote service test is right and name is " + this.name);
		return "Service >> " + content;
	}
	
}
